package com.qfjy.student.zhangqingqqing.builderpattern;

import com.qfjy.student.zhangqingqqing.builderpattern.dabaodefood.ChickenBurger;
import com.qfjy.student.zhangqingqqing.builderpattern.dabaodefood.Coke;
import com.qfjy.student.zhangqingqqing.builderpattern.dabaodefood.Pepsi;
import com.qfjy.student.zhangqingqqing.builderpattern.dabaodefood.VegBurger;

/**
 * @Author zhangqingqing
 * @Date 2021/6/23 20:04
 */

public class MealBuilder {
    public Meal prepareVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal prepareNonVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
